cmake_minimum_required(VERSION 2.8)
project(TestWorkflow)
find_package(OpenSSL REQUIRED)
find_package(workflow REQUIRED)
include_directories(. ${OPENSSL_INCLUDE_DIR} ${WORKFLOW_INCLUDE_DIR})
link_directories(${WORKFLOW_LIB_DIR})
set(libs workflow OpenSSL::SSL OpenSSL::Crypto)
add_executable(${PROJECT_NAME} main.cpp slre.c)
if(WIN32)
  list(APPEND libs ws2_32 mswsock) 
else()
  list(APPEND libs pthread) 
endif()
target_link_libraries(${PROJECT_NAME} ${libs})
